/**
 * Created by gf on 17.4.27.
 */
//初始化参数
var systemName = 'FERM 2.0 一键部署工具';
var systemVersion = '';
var isOffline = false;

//产品目录
var apps = [
  {
    'name': '调度1.0',
    'sel': false
  }, {
    'name': '调度2.0',
    'sel': false
  }, {
    'name': '内控4.0',
    'sel': false
  }, {
    'name': '全面风险',
    'sel': false
  }, {
    'name': '信用评级',
    'sel': false
  }
];

//路径导航
var pages = [
  {
    name: '应用选择',
    path: '#!/main'
  }, {
    name: '数据库连接',
    path: '#!/database'
  }, {
    name: '版本选择',
    path: '#!/version'
  }, {
    name: '参数配置',
    path: '#!/module'
  }, {
    name: '数据库部分',
    path: '#!/dbset'
  }, {
    name: '接口部分',
    path: '#!/interface'
  }, {
    name: '平台部署',
    path: '#!/platform'
  }
];

var pagesOffline = [
  {
    name: '应用选择',
    path: '#!/main'
  }, {
    name: '数据库连接',
    path: '#!/database'
  }, {
    name: '版本选择',
    path: '#!/version'
  }, {
    name: '参数配置',
    path: '#!/module'
  }, {
    name: '数据库部分',
    path: '#!/dbset'
  }, {
    name: '平台部署',
    path: '#!/platform'
  }
];

//菜单导航
var menus = [
  {
    name: '参数配置',
    menuIndex: 1,
    icon: 'fa-gear',
    children: [
      {
        name: '系统模块配置',
        menuIndex: 1.1,
        path: 'module',
        icon: 'fa-puzzle-piece'
      }, {
        name: '部署模式配置',
        menuIndex: 1.2,
        path: 'installmodel',
        icon: 'fa-gear'
      }, {
        name: 'MongoDB配置',
        menuIndex: 1.3,
        path: 'mongodb',
        icon: 'fa-database'
      }, {
        name: '个性化配置',
        menuIndex: 1.4,
        path: 'uam',
        icon: 'fa-magic'
      }, {
        name: '单点登录配置',
        menuIndex: 1.5,
        path: 'cas',
        icon: 'fa-key'
      }, {
        name: '报送基础信息配置',
        menuIndex: 1.6,
        path: 'report',
        icon: 'fa-file-text-o'
      }, {
        name: '消息提醒相关配置',
        menuIndex: 1.7,
        path: 'msg',
        icon: 'fa-bell'
      }, {
        name: '各系统服务器IP和端口号配置',
        menuIndex: 1.8,
        path: 'web',
        icon: 'fa-lock'
      }, {
        name: '行情程序配置',
        menuIndex: 1.9,
        path: 'quotation',
        icon: 'fa-cube'
      }, {
        name: 'RMM和消息中心配置',
        menuIndex: 1.11,
        path: 'rmm',
        icon: 'fa-bullhorn'
      }, {
        name: '绩效风控系统配置',
        menuIndex: 1.12,
        path: 'hsrisk',
        icon: 'fa-exclamation-triangle'
      }
    ]
  }, {
    name: '数据库部分',
    menuIndex: 2,
    icon: 'fa-database',
    children: [
      {
        name: '数据库配置',
        menuIndex: 2.1,
        path: 'dbset',
        icon: 'fa-gear'
      }, {
        name: '数据库脚本安装',
        menuIndex: 2.2,
        path: 'installDB',
        icon: 'fa-wrench'
      }
    ]
  }, {
    name: '接口部分',
    menuIndex: 3,
    icon: 'fa-plug',
    children: [
      // {
      //   name: '接口包配置',
      //   menuIndex: 3.1,
      //   path: 'interface',
      //   icon: 'fa-gear'
      // }, 
      {
        name: '接口包脚本安装',
        menuIndex: 3.2,
        path: 'installInterface',
        icon: 'fa-wrench'
      }
    ]
  }, {
    name: '平台部署',
    menuIndex: 4,
    icon: 'fa-desktop',
    children: [
      {
        name: '平台配置及报表模版导入',
        menuIndex: 4.1,
        path: 'platform',
        icon: 'fa-download'
      }
    ]
  }
];

var menusOffline = [
  {
    name: '参数配置',
    menuIndex: 1,
    icon: 'fa-gear',
    children: [
      {
        name: '系统模块配置',
        menuIndex: 1.1,
        path: 'module',
        icon: 'fa-puzzle-piece'
      }, {
        name: '部署模式配置',
        menuIndex: 1.2,
        path: 'installmodel',
        icon: 'fa-gear'
      }, {
        name: 'MongoDB配置',
        menuIndex: 1.3,
        path: 'mongodb',
        icon: 'fa-database'
      }, {
        name: '个性化配置',
        menuIndex: 1.4,
        path: 'uam',
        icon: 'fa-magic'
      }, {
        name: '单点登录配置',
        menuIndex: 1.5,
        path: 'cas',
        icon: 'fa-key'
      }, {
        name: '报送基础信息配置',
        menuIndex: 1.6,
        path: 'report',
        icon: 'fa-file-text-o'
      }, {
        name: '消息提醒相关配置',
        menuIndex: 1.7,
        path: 'msg',
        icon: 'fa-bell'
      }, {
        name: '各系统服务器IP和端口号配置',
        menuIndex: 1.8,
        path: 'web',
        icon: 'fa-lock'
      }, {
        name: '行情程序配置',
        menuIndex: 1.9,
        path: 'quotation',
        icon: 'fa-cube'
      }, {
        name: 'RMM和消息中心配置',
        menuIndex: 1.11,
        path: 'rmm',
        icon: 'fa-bullhorn'
      }, {
        name: '绩效风控系统配置',
        menuIndex: 1.12,
        path: 'hsrisk',
        icon: 'fa-exclamation-triangle'
      }
    ]
  }, {
    name: '数据库部分',
    menuIndex: 2,
    icon: 'fa-database',
    children: [
      {
        name: '数据库配置',
        menuIndex: 2.1,
        path: 'dbset',
        icon: 'fa-gear'
      }
    ]
  }, {
    name: '平台部署',
    menuIndex: 4,
    icon: 'fa-desktop',
    children: [
      {
        name: '平台配置及报表模版导入',
        menuIndex: 4.1,
        path: 'platform',
        icon: 'fa-download'
      }
    ]
  }
];